package com.park.controller;

import com.park.entity.User;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("resful")
public class ResfulController {
    @RequestMapping(value = "user",method = RequestMethod.GET)
    public String select(@RequestBody User user){
        System.out.println(user);
        return "ok";
    }
    @DeleteMapping("delete/{id}")
    public String delete(@PathVariable("id")int id){
        return "删除成功"+id;
    }

}
